package com.airclick.merchant.entity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;


@Data
@Entity
@AllArgsConstructor
@NoArgsConstructor
@Table(name="t_commercial", schema = "game")
@org.hibernate.annotations.Table(appliesTo = "t_commercial", comment = "商户表")
@ApiModel("Commercial(商户表)")
public class Commercial extends BaseEntity {


    @Id
    @ApiModelProperty("主键编号")
    @GeneratedValue(generator = "snowFlakeIdGenerator", strategy = GenerationType.SEQUENCE)
    @GenericGenerator(name = "snowFlakeIdGenerator", strategy = "com.airclick.merchant.utils.SnowFlakeIdGenerator")
    private String id;

    @Column(name="user_Id", nullable = true, length = 100, columnDefinition = "varchar(64) COMMENT '用户id'")
    @ApiModelProperty("用户id")
    private String userId;

    @Column(name="merchant_name", nullable = true, length = 100, columnDefinition = "varchar(64) COMMENT '商户名称'")
    @ApiModelProperty("商户名称")
    private String merchantName;

    @Column(name="publisher", nullable = true, length = 100, columnDefinition = "varchar(64) COMMENT '发行商'")
    @ApiModelProperty("发行商")
    private String publisher;

    @Column(name="logo", nullable = true, length = 100, columnDefinition = "varchar(500) COMMENT 'logo'")
    @ApiModelProperty("logo")
    private String logo;

    @Column(name="contact_address ", nullable = true, length = 100, columnDefinition = "varchar(100) COMMENT '联系地址'")
    @ApiModelProperty("联系地址")
    private String contactAddress ;

    @Column(name="contact_number ", nullable = true, length = 100, columnDefinition = "varchar(100) COMMENT '联系号码'")
    @ApiModelProperty("联系号码")
    private String contactNumber ;

    @Column(name="electronic_mail ", nullable = true, length = 100, columnDefinition = "varchar(100) COMMENT '电子邮件'")
    @ApiModelProperty("电子邮件")
    private String electronicMail ;

    @Column(name="merchant_code ", nullable = true, length = 100, columnDefinition = "varchar(64) COMMENT '商户编号'")
    @ApiModelProperty("商户编号")
    private String merchantCode ;

    @Column(name="wallet_id ", nullable = true, length = 100, columnDefinition = "varchar(64) COMMENT '钱包id'")
    @ApiModelProperty("钱包id")
    private String walletId ;

}
